package com.xyoto.community.enums;

/**
 * ClassName:   留言枚举类
 * Author:      挽风
 * Date:        2020
 * Copyright:   2020 by 挽风1.0版本
 * Description:
 *
 * @author Administrator*/
public enum LeaveMessageEnum implements Code {

    /** 留言状态码枚举 */
    CREATE_LEAVE_MESSAGE_FAIL(1080, "创建留言失败"),
    DELETE_LEAVE_MESSAGE_FAIL(1081, "删除留言失败"),
    LEAVE_NOT_EXIST(1082, "留言不存在");


    /** 枚举状态码 */
    private int code;

    /** 枚举状态信息 */
    private String msg;

    /**
     * 全参构造器
     *
     * @param code 枚举状态码
     * @param msg 枚举状态值
     */
    LeaveMessageEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }
}
